package com.zwh.modules.order.entity;

import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhangwenhe
 * @since 2020-10-27
 */
@TableName(value = "second_kill_order")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    /**
     * 商品id
     */
    private String goodsId;

    /**
     * 用户id
     */
    private String userId;
    /**
     * 交易金额
     */
    private BigDecimal money;

    /**
     * 交易流水
     */
    private String transactionId;

    private Date createDate;

    private Date updateDate;

    @TableLogic
    private String deleteStatus;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }
    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }
    public String getTransactionId() {
        return transactionId;
    }

    public void setTransactionId(String transactionId) {
        this.transactionId = transactionId;
    }
    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }
    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }
    public String getDeleteStatus() {
        return deleteStatus;
    }

    public void setDeleteStatus(String deleteStatus) {
        this.deleteStatus = deleteStatus;
    }

    @Override
    public String toString() {
        return "Order{" +
            "id=" + id +
            ", goodsId=" + goodsId +
            ", money=" + money +
            ", transactionId=" + transactionId +
            ", createDate=" + createDate +
            ", updateDate=" + updateDate +
            ", deleteStatus=" + deleteStatus +
        "}";
    }
}
